package cn.wolfcode.crm.domain;

import cn.wolfcode.crm.util.CRMConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author isriv
 * @date 2018/07/12 下午 07:32
 */

@Setter
@Getter
@ToString
public class Accident {

    private Long id;

    private Client claim;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date claimTime;

    /**
     * 报案用户初始值,表示已报案暂未验证
     */
    private int claimState = CRMConstant.Accident.CLAIM_STATE_UNVERIFIED;

    private Insurancebill insurancebill;

    private String accidentPlace;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date accidentTime;

    private String accidentDescription;

    private String accidentRemark;

    private Employee investigator;

    private Employee auditor;

    private int auditorResult;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date auditorTime;
}